package com.itcs.box.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author: wanghui
 * @Date: 2019/5/10 16:32
 * @Description: 参数日志
 */
public class ParamsLog {

	public static Logger logger = LoggerFactory.getLogger(ParamsLog.class);

	/** 
	 * 写参数日志
	 * @param id
	 * @param params 
	 */
	public static void logParams(String id, String params) {
		if (params == null) {
			return;
		}
		StringBuilder builder = new StringBuilder();
		builder.append("[");
		builder.append(id);
		builder.append("]-");
		builder.append(params);
		logger.info(builder.toString());
	}

}
